<div data-role="page" >
	
<div data-role="header" data-nobackbtn="true">
	<?php $path = empty($_SERVER['HTTP_REFERER']) ? WEB_ROOT."webmail/menu" : $_SERVER['HTTP_REFERER']; ?>
	<a data-icon="arrow-l" rel="external" href="<?php echo $path; ?>">Retour</a>
		<h1>D&eacute;placer vers</h1>
	</div>

	<div data-role="content" data-theme="c">
		<?php if($mailbox != INBOX): ?>
			<a href="<?php echo WEB_ROOT; ?>webmail/movetofolder/<?php echo $mailbox ?>/<?php echo INBOX ?>/<?php echo $uid ?>" data-role="button" data-theme="c" rel="external">Bo&icirc;te de r&eacute;ception</a>
		<?php endif; ?>
		<?php if($mailbox != TRASH): ?>
			<a href="<?php echo WEB_ROOT; ?>webmail/movetofolder/<?php echo $mailbox ?>/<?php echo TRASH ?>/<?php echo $uid ?>" data-role="button" data-theme="c" rel="external">Corbeille</a>
		<?php endif; ?>
		<?php if(count($mailboxes) > 0): ?>
			<?php foreach($mailboxes as $mb): ?>
				<?php if($mailbox != $mb->fullname): ?>
					<a href="<?php echo WEB_ROOT; ?>webmail/movetofolder/<?php echo $mailbox ?>/<?php echo $mb->fullname ?>/<?php echo $uid ?>" data-role="button" data-theme="c" rel="external"><?php echo $mb->realname ?></a>
				<?php endif; ?>
			<?php endforeach; ?>
		<?php else: ?>
		<span>Vous n'avez pas de dossiers</span>
		<?php endif; ?>
	</div>

</div>
